//
//  MCTestCell.swift
//  UITableViewDemo
//
//  Created by daqsoft-mac on 2022/5/12.
//

import UIKit

class MCTestCell: UITableViewCell {

    @IBOutlet weak var testLabel: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    override func objectDataDidChange() {
        let str = self.objectData as? String
        
        testLabel.text = str ?? "测试文本"
    }
    
    override func cellProtocolDidSet() {
        let cellModel = cellProtocol as! MCPublicTableViewCellModel
        
        self.objectData = cellModel.otherData
    }
    
}
